$(function() {
	var skin_check = $.cookie('skin');
	if( (skin_check==undefined)  || (skin_check=='blue')){			
		document.getElementById('personPic').src="image/person.jpg";  
		document.getElementById('moneyPic').src="image/money.jpg";
		document.getElementById('assetPic').src="image/asset.jpg";
		document.getElementById('mapPic').src="image/map.jpg";
		document.getElementById('flightPic').src="image/flight.jpg";
		document.getElementById('flighthisPic').src="image/flighthis.jpg";
		document.getElementById('kpiPic').src="image/kpi.jpg";
		document.getElementById('traPic').src="image/traveller.jpg";
		document.getElementById('packPic').src="image/package.jpg";
	}
	else {					
		document.getElementById('personPic').src="image/person_col.jpg";  
		document.getElementById('moneyPic').src="image/money_col.jpg";
		document.getElementById('assetPic').src="image/asset_col.jpg";
		document.getElementById('mapPic').src="image/map_col.jpg";
		document.getElementById('flightPic').src="image/flight_col.jpg";
		document.getElementById('flighthisPic').src="image/flighthis_col.jpg";
		document.getElementById('kpiPic').src="image/kpi_col.jpg";
		document.getElementById('traPic').src="image/traveller_col.jpg";
		document.getElementById('packPic').src="image/package_col.jpg";
	}

	
	$("#switch").click(function() {
		console.log('switch');
		
		var skin_check = $.cookie('skin');
		console.log('skin:'+skin_check);
		
		if( (skin_check==undefined)  || (skin_check=='blue')){			
			$.cookie('skin', 'color');		
			
			
			document.getElementById('personPic').src="image/person_col.jpg";  
			document.getElementById('moneyPic').src="image/money_col.jpg";
			document.getElementById('assetPic').src="image/asset_col.jpg";
			document.getElementById('mapPic').src="image/map_col.jpg";
			document.getElementById('flightPic').src="image/flight_col.jpg";
			document.getElementById('flighthisPic').src="image/flighthis_col.jpg";
			document.getElementById('kpiPic').src="image/kpi_col.jpg";
			document.getElementById('traPic').src="image/traveller_col.jpg";
			document.getElementById('packPic').src="image/package_col.jpg";
		}
		else {			
			$.cookie('skin', 'blue');
			
			document.getElementById('personPic').src="image/person.jpg";  
			document.getElementById('moneyPic').src="image/money.jpg";
			document.getElementById('assetPic').src="image/asset.jpg";
			document.getElementById('mapPic').src="image/map.jpg";
			document.getElementById('flightPic').src="image/flight.jpg";
			document.getElementById('flighthisPic').src="image/flighthis.jpg";
			document.getElementById('kpiPic').src="image/kpi.jpg";
			document.getElementById('traPic').src="image/traveller.jpg";
			document.getElementById('packPic').src="image/package.jpg";
		}
		
		
		
	});
});
